翻訳と辞書
Words near each other
・ Contemporary art
・ Contemporary Art Centre (Vilnius)
・ Contemporary Art Centre of South Australia
・ Contemporary Art Galleries Association
・ Contemporary art gallery
・ Contemporary Art Gallery (Vancouver)
・ Contemporary art in Egypt
・ Contain
・ Contain Us
・ Container
・ Container (abstract data type)
・ Container (board game)
・ Container (disambiguation)
・ Container (film)
・ Container (song)
Container (type theory)
・ Container Bob
・ Container City
・ Container compression test
・ Container Corporation of America
・ Container Corporation of India
・ Container crane
・ Container deposit legislation
・ Container deposit legislation in Australia
・ Container deposit legislation in the United States
・ Container format
・ Container Freight Swap Agreement
・ Container garden
・ Container glass
・ Container industry in China


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Container (type theory) : ウィキペディア英語版
Container (type theory)
In type theory, containers are abstractions which permit various "collection types", such as lists and trees, to be represented in a uniform way. A (unary) container is defined by a type of ''shapes'' S and a type family of ''positions'' P, indexed by S. The ''extension'' of a container is a family of dependent pairs consisting of a shape (of type S) and a function from positions of that shape to the element type. Containers can be seen as canonical forms for collection types.
For lists, the shape type is the natural numbers (including zero). The corresponding position types are the types of natural numbers less than the shape, for each shape.
For trees, the shape type is the type of trees of units (that is, trees with no information in them, just structure). The corresponding position types are isomorphic to the types of valid paths from the root to particular nodes on the shape, for each shape.
Note that the natural numbers are isomorphic to lists of units. In general the shape type will always be isomorphic to the original non-generic container type family (list, tree etc.) applied to unit.
One of the main motivations for introducing the notion of containers is to support generic programming in a dependently typed setting.〔
== Categorical aspects ==

The extension of a container is an endofunctor. It takes a function g to
\lambda\left(s,f\right).\left(s,g\circ f\right)
This is equivalent to the familiar map g in the case of lists, and does something similar for other containers.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Container (type theory)」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.